<?php //pack11class

class PostForm extends Form {

    public function setup() {
        $this->setID("PostData");
        $this->addStyle("display", "none");
        foreach(PostManager::getPostVars() as $item) {
            $this->addChild($item);
            if($item->getName()=="currency") {
                $oc=new PostItem();
                $oc->setID("old_currency");
                $oc->setName("old_currency");
                $oc->setBody($item->getBody());
                $this->addChild($oc);
            }
        }

    }

}
?>
